package com.yxb.cms.dao;

import com.yxb.cms.dao.expmle.TeachersExample;
import com.yxb.cms.domain.vo.ClassTeach;
import com.yxb.cms.domain.vo.CourseTime;
import com.yxb.cms.domain.vo.Students;
import com.yxb.cms.domain.vo.Teachers;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TeachersMapper {
    long countByExample(Teachers example);

    int deleteByExample(TeachersExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Teachers record);

    int insertSelective(Teachers record);

    List<Teachers> selectByExample(TeachersExample example);

    Teachers selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Teachers record, @Param("example") TeachersExample example);

    int updateByExample(@Param("record") Teachers record, @Param("example") TeachersExample example);

    int updateByPrimaryKeySelective(Teachers record);

    int updateByPrimaryKey(Teachers record);

    List<Teachers> selectTeachersPage(Teachers record);


    List<ClassTeach> selectClassTeachPageList(ClassTeach classTeach);

    long countByExampleClassTeach(ClassTeach classTeach);

    int insertSelectiveClassTeach(ClassTeach classTeach);

    int deleteByPrimaryKeyClassTeach(Long id);

    List<Teachers> selectAllTeachers();

    List<ClassTeach> selectClassTeachById(@Param("classId") Long classId);

    ClassTeach selectClassTeachByIdV2(@Param("id") Long id);

}